Name :Read axis error command

Symbol :MC_ReadAxisError

Illustrate:

    Used to read the fault of the shaft, active high.
    If ENABLE is set to TRUE, set VALID to TRUE if the read information is valid.
    The AXISERRORID is used to display the fault code of the axis in real time, or 0 if there is no fault.
    There is no interrupt flag for this command, and multiple commands can be run at the same time. 

Image:

Parameter:

>
The name of the parameter data type IN/OUT Parameter role Illustrate Default value
AXISNO UDINT IN Pulse shaft number 0-7
not
ENABLE BOOL IN The function block is enabled TRUE:Enables the reading of axis error commands
FALSE
VALID BOOL OUT Valid signs TRUE:Reading axis error is valid
FALSE
BUSY BOOL OUT Busy sign TRUE:Reading axis error
FALSE
AXISERRORID UINT OUT Axis error code 0:The axis is normal, there is no error, and there is no error; Other: The axis is incorrect
0
ERROR BOOL OUT Error flags TRUE:There was an error with the function block call
FALSE
ERRORID UINT OUT Error codes 0:Normal, Other: Error code value
0

Example:

LD:

ST:



Interpretation:

   AXISNO is 0, which means that the operating pulse axis is 0;
   If ENABLE is TRUE, enable the reading of axis error commands.
   VALID is TRUE, indicating that the error message of the read axis is valid.
   If BusyOut is set to TRUE, it means that the BusyOut is reset after the axis error message is read.
   If AxisErrorIdOut is 0, no axis error fault has occurred, and if it is not 0, there is an axis error fault.
   If ErrorOut is TURE, it indicates that there is an error and cannot be executed.
   If ErrorIdOut is 0, the execution is normal, and if it is not 0, there is an error and cannot be executed